package com.woniuxy.project115.kaer.tenant.controller;


import com.woniuxy.project115.kaer.commons.util.Result;
import com.woniuxy.project115.kaer.tenant.dto.ApplicationAttachmentDto;
import com.woniuxy.project115.kaer.tenant.entity.ApplicationAttachment;
import com.woniuxy.project115.kaer.tenant.service.ApplicationAttachmentService;
import com.woniuxy.project115.kaer.tenant.service.SettledApplicationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author HuH
 * @since 2025年02月17日
 */
@RestController
@RequestMapping("/applicationAttachment")
@Api(tags = "入驻申请附件接口")
public class ApplicationAttachmentController {
    @Resource
    private ApplicationAttachmentService applicationAttachmentService;

    @PostMapping("getAttachmentById")
    @ApiOperation("根据入驻申请id获取入驻申请附件")
    public Result<ApplicationAttachmentDto> getAttachmentById(Integer applicationId) throws Exception {
        return Result.succeed("success", null, applicationAttachmentService.getAttachmentById(applicationId));
    }
}

